import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useUserInfoStore = defineStore('UserInfo', () => {
  const userInfo = ref<JKUserInfo>({} as JKUserInfo)
  userInfo.value = jk.getUserInfo()

  const token = jk.getToken()

  return { userInfo, token }
})
